<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function persion(name,age){
            this.name = name
            this.age = age    
        }
        persion.prototype.show = function() {
            document.write("读书<br>")
            }
         var dmeo = new persion();
         dmeo.show ()
         var dmeo1 = new persion("张三","20");
         dmeo1.show = function () {
             document.write("姓名是：" + this.name + ",年龄是" + this.age)
         }
        dmeo1.show()


       //第四题：：：：：：：：：：：：
        var sun = {
             name : '李四',
             age : 18,
             sex : '男',
             addr : '郑州市',
             tel : 15565263789,
             prototype:show = function () {
                console.log("读书")
             }
        }
        for (var key in sun) {    
            console.log(key + "=" + sun[key]); 
            }
        
    </script>
</body>
</html>